package com.jjx.trainingapi.service;

import com.jjx.trainingapi.entity.po.DcCourse;
import com.jjx.trainingapi.entity.po.QuestionItem;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jjx.trainingapi.entity.vo.DoAnswerVo;

import java.util.List;

/**
 * @author LoveHuahua
 * @date 2022年05月24日 1:10
 * @description believe in yourself
 */
public interface QuestionItemService extends IService<QuestionItem> {


    /**
     * 答案提交接口
     * @param questionItem
     * @return
     */
    DoAnswerVo doAnswer(QuestionItem questionItem);

    /**
     * 获取错题
     * @param questionItem
     * @return
     */
    List<QuestionItem> getErrorQuestion(DcCourse questionItem);
}

